package com.example.study.common.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @description：
 * @author: liqiancheng
 * @createTime: 2021/7/26 10:45
 **/
@ConfigurationProperties(prefix = "dynamic")
public class DynamicDataSourceProperties {

    private Map<String, DruidDataSourceProperties> datasource = new LinkedHashMap<>();

    public Map<String, DruidDataSourceProperties> getDatasource() {
        return this.datasource;
    }

    public void setDatasource(Map<String, DruidDataSourceProperties> datasource) {
        this.datasource = datasource;
    }
}
